package com.numbfish.ch02_ex05_aop_annotation.config;

import com.numbfish.ch02_ex05_aop_annotation.pojo.Boy;
import com.numbfish.ch02_ex05_aop_annotation.pojo.Human;
import com.numbfish.ch02_ex05_aop_annotation.pojo.Man;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class CustomConfig {

    @Bean(name = "human")
    public Human human() {
        return new Human();
    }

    @Bean(name = "man")
    public Man man() {
        return new Man();
    }

    @Bean(name = "boy")
    public Boy boy(){
        return new Boy();
    }
}
